import request from '@/utils/request'


// 课件列表
export function getCourseList(params) {
    return request({
      url: '/course/getCourseList',
      method: 'get',
      params
    })
  }

//获取自定义章节目录
  export function queryCustomSectionTree(params) {
    return request({
      url: '/section/queryCustomSectionTree',
      method: 'get',
      params
    })
  }

  

  //添加一级分类
  export function addProfession(params) {
    return request({
      url: '/section/addProfession',
      method: 'post',
      data:params
    })
  }

  //删除一级分类
  export function delProfession(params) {
    return request({
      url: '/section/delProfession',
      method: 'get',
      params
    })
  }

   //添加二级分类
   export function addSection(params) {
    return request({
      url: '/section/addSection',
      method: 'post',
      data:params
    })
  }

  //删除二级分类
  export function delSection(params) {
    return request({
      url: '/section/delSection',
      method: 'get',
      params
    })
  }


  //获取章节列表
  export function getSectionList(params) {
    return request({
      url: '/section/getSectionList',
      method: 'get',
      params
    })
  }
  

//删除课件
  export function delCourse(params) {
    return request({
      url: '/course/delCourse',
      method: 'get',
      params
    })
  }


  //获取课件列表
  export function queryCourseByIds(params){
    return request({
      url: '/course/queryCourseByIds',
      method: 'get',
      params
    })
  }